package com.assignwork.service;

import com.assignwork.dto.ShipAgentSearchDTO;
import com.assignwork.dto.ShipAgentSubmitDTO;
import com.assignwork.entity.ShipAgent;
import com.assignwork.vo.ShipAgentListVO;
import com.assignwork.vo.ShipAgentPageVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;

import java.util.List;
import java.util.Map;

/**
 * @ClassName IShipAgentService
 * @Description 船代接口
 * @Author dujianyu
 * @Date 2023/8/22 9:10
 */
public interface IShipAgentService extends BaseService<ShipAgent> {
    /**
     * 分页
     * @param dto 搜索条件
     * @param page 分页
     * @return IPage<ShipAgentPageVO>
     * @author dujianyu
     * @since 2023/8/22 9:21
     */
    IPage<ShipAgentPageVO> selectShipAgentPage(ShipAgentSearchDTO dto, IPage<ShipAgentPageVO> page);

    /**
     * 列表
     * @param dto 搜索条件
     * @return List<ShipAgentListVO>
     * @author dujianyu
     * @since 2023/8/22 9:35
     */
    List<ShipAgentListVO> selectShipAgentList(ShipAgentSearchDTO dto);

    boolean pinyinSet();

    /**
     * 新增或修改
     * @param  dto 数据
     * @return  Boolean
     * @author dujianyu
     * @since 2023/8/22 9:51
     */
    Boolean submitShipAgent(ShipAgentSubmitDTO dto);

    /**
     * map
     * @return Map<String, String>
     * @author dujianyu
     * @since 2023/8/23 9:10
     */
    Map<String, String> shipAgentMap();
}
